package com.learn.springcloud.feignextendfeatureprovider.controller;


import com.learn.springcloud.feignextendfeatureparent.bean.User;
import com.learn.springcloud.feignextendfeatureparent.service.HelloService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/8/9 11:50
 * @Version : 1.0
 */
@RestController
public class RefactorHelloController implements HelloService {


    @Override
    public String hello(@RequestParam(name = "name") String name) {
        return null;
    }

    @Override
    public User hello(@RequestHeader(name = "name") String name, @RequestHeader(name = "age") Integer age) {
        return null;
    }

    @Override
    public String hello(@RequestBody User user) {
        return null;
    }
}
